package com.itheima.service.impl;
import com.itheima.mapper.DeptMapper;
import com.itheima.pojo.Dept;
import com.itheima.service.DeptService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.xml.crypto.Data;
import java.util.List;

//部门业务实现类
//用于实现Service的接口
@Slf4j
@Service  //由springboot创建该类对象并交给IOC容器管理
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptMapper deptMapper;
    @Override
    public List<Dept> sb() {
        List<Dept> list1=deptMapper.sb();
        return list1;

    }

    @Override
    public List<Dept> nt(Integer id) {
      List<Dept> list2=deptMapper.nt(id);
      return list2;
    }

    @Override
    public List<Dept> rb(Integer id) {
        List<Dept> list3=deptMapper.rb(id);
        return  list3;
    }

    @Override
    public List<Dept> bib() {
      List<Dept> list4=deptMapper.bib();
      return list4;
    }

    @Override
    public List<Dept> modify() {
        List<Dept> list5=deptMapper.modify();
        return list5;
    }
}